#include <iostream>

using namespace std;

    template <class t> void order( t a,t b, t c)
    {
        t d;

        if (a<b) d=b,b=a,a=d;
        if (a<c) d=c,c=a,a=d;
        if (b<c) d=c,c=b,b=d;

        cout<<"anwser is:\n"<<a<<'\2'<<b<<'\2'<<c<<endl;
        
    }


int main ( )
{
    int a,b,c,s;
    double a1,b1,c1;
    long a2,b2,c2;

    cout<<"the program is used to order the number"<<endl;
    cout<<"please select the type of the number: int , double 2;long 3;"<<endl;
    cin>>s;
    cout<<"enter the numebr"<<endl;;

    switch(s)
    {
    case 1:{
                cin>>a>>b>>c;
                order(a,b,c);
                break;
           }

    case 2:{
                cin>>a1>>b1>>c1;
                order(a1,b1,c1);
                break;
           }
    case 3:{
                cin>>a2>>b2>>c2;
                order(a2,b2,c2);
                break;
           }
    }
           cin>>a;
           return 0;
    
}